package com.forum.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.forum.pojo.BlockRela;
import com.forum.service.BlockRelaService;
import com.forum.mapper.BlockRelaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86152
* @description 针对表【block_rela】的数据库操作Service实现
* @createDate 2023-01-31 00:42:33
*/
@Service
public class BlockRelaServiceImpl extends ServiceImpl<BlockRelaMapper, BlockRela>
    implements BlockRelaService{
    @Autowired
    private BlockRelaMapper blockRelaMapper;
    @Override
    public boolean search(Long friendId, Long userId) {
            if(blockRelaMapper.search(friendId,userId)!=null)
                return false;
            return true;
    }
}




